package com.lmk;

import java.util.Scanner;

public class Score {
    public static void main(String[] args) {

        double  java=0;
        double  sql=0;
        double  web=0;
        //Scanner  用于获取用户从键盘输入的内容
        Scanner sc=new Scanner(System.in);
        System.out.println("请输入java课成绩：");
         java=sc.nextDouble();
        System.out.println("请输入sql课成绩：");
        sql=sc.nextDouble();
        System.out.println("请输入web课的成绩：");
        web=sc.nextDouble();
        System.out.println("java 和sql的分数差为："+(java-sql));
        System.out.println("平均分："+(java+sql+web)/3);



    }
}
